import request from '@/utils/request'

// 批量新增空间用户
export const addBatchIds = (params) => {
  return request({
    url: '/iot/personnel/addBatchIds',
    method: 'post',
    data: params
  })
}

//查询空间用户列表 
export const listPersonnel = (query) => {
  return request({
    url: '/iot/personnel/list',
    method: 'get',
    params: query
  })
}

// 删除空间用户
export const delper = (id) => {
  return request({
    url: '/iot/personnel/'+ id,
    method: 'delete'
  })
}